<h1>User List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Firstname</th>
      <th>Lastname</th>
      <th>Email</th>
      <th>Username</th>
      <th>Password</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($user_list as $user): ?>
    <tr>
      <td><a href="<?php echo url_for('user/edit?id='.$user['id']) ?>"><?php echo $user->getid() ?></a></td>
      <td><?php echo $user->getfirstname() ?></td>
      <td><?php echo $user->getlastname() ?></td>
      <td><?php echo $user->getemail() ?></td>
      <td><?php echo $user->getusername() ?></td>
      <td><?php echo $user->getpassword() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('user/new') ?>">New</a>
